package yz.cp.back.s.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import yz.cp.back.base.AuditEntity;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author jobob
 * @since 2019-04-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_role")
public class SysRole extends AuditEntity {

    private String name;

    private Boolean defaultRole;

    private String description;

    private Integer dataType;

    @TableField(exist = false)
    private List<SysRolePermission> permissions;

    @TableField(exist = false)
    private List<SysRoleDepartment> departments;

}
